<?php
$this->title = "权限列表";

$this->params['breadcrumbs'][] = Yii::$app->controller->id;

$this->params['breadcrumbs'][] = $this->title;

?>
<div class="table-responsive">
<table class="table">
    <tr>
        <th>名称</th>
        <th>描述</th>
        <th>操作</th>
    </tr>
    <?php use yii\helpers\Html;

    foreach($permissions as $permission):?>
    <tr>
        <td><?=$permission->name?></td>
        <td><?=$permission->description?></td>
        <td><?=Html::a('删除',['rbac/remove-permission','name'=>$permission->name],['class'=>'btn btn-warning'])?></td>
    </tr>
    <?php endforeach;?>
</table>
</div>